package mn.idax.exchange.otc.util;

import com.alibaba.fastjson.JSON;
import mn.idax.exchange.common.I18nLanguageUtil;
import mn.idax.exchange.common.bean.ResponseData;

/**
 * @Auther: dison
 * @Date: 2018/8/3 16:29
 * @Description:
 */
public class BaseModel {

    /**
     *
     * 功能描述:
     *          生产响应实体
     * @param: code 状态码
     * @return: ResponseData 响应实体
     * @auther: dison
     * @date: 2018/8/3 16:33
     */
    public static ResponseData makeI18nResponseData(Integer code){
        return (ResponseData) I18nLanguageUtil.replaceLangeage(JSON.toJSONString(ResponseData.error(code,null)));
    }
}
